#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int n = 0;
	int m = 0;
	scanf("%d", &n);
	m = (n + 1) / 2;
	for (int i = 1; i <= m; i++)
	{
		for (int j = 0; j < m - i; j++)
		{
			printf(" ");
		}
		for (int k = 0; k < 2 * i - 1; k++)
		{
			printf("*");
		}
		printf("\n");
	}
	for (int i = 1; i <= m - 1; i++)
	{
		for (int j = 1; j <= i; j++)
		{
			printf(" ");
		}
		for (int k = 0; k < 2 * (m - 1 - i) + 1; k++)
		{
			printf("*");
		}
		printf("\n");
	}
	return 0;
}